package com.akk.module.avs.entity;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

@Component
public class AvsPayVipConfigExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AvsPayVipConfigExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andConfIdIsNull() {
            addCriterion("conf_id is null");
            return (Criteria) this;
        }

        public Criteria andConfIdIsNotNull() {
            addCriterion("conf_id is not null");
            return (Criteria) this;
        }

        public Criteria andConfIdEqualTo(Long value) {
            addCriterion("conf_id =", value, "confId");
            return (Criteria) this;
        }

        public Criteria andConfIdNotEqualTo(Long value) {
            addCriterion("conf_id <>", value, "confId");
            return (Criteria) this;
        }

        public Criteria andConfIdGreaterThan(Long value) {
            addCriterion("conf_id >", value, "confId");
            return (Criteria) this;
        }

        public Criteria andConfIdGreaterThanOrEqualTo(Long value) {
            addCriterion("conf_id >=", value, "confId");
            return (Criteria) this;
        }

        public Criteria andConfIdLessThan(Long value) {
            addCriterion("conf_id <", value, "confId");
            return (Criteria) this;
        }

        public Criteria andConfIdLessThanOrEqualTo(Long value) {
            addCriterion("conf_id <=", value, "confId");
            return (Criteria) this;
        }

        public Criteria andConfIdIn(List<Long> values) {
            addCriterion("conf_id in", values, "confId");
            return (Criteria) this;
        }

        public Criteria andConfIdNotIn(List<Long> values) {
            addCriterion("conf_id not in", values, "confId");
            return (Criteria) this;
        }

        public Criteria andConfIdBetween(Long value1, Long value2) {
            addCriterion("conf_id between", value1, value2, "confId");
            return (Criteria) this;
        }

        public Criteria andConfIdNotBetween(Long value1, Long value2) {
            addCriterion("conf_id not between", value1, value2, "confId");
            return (Criteria) this;
        }

        public Criteria andVipMoneyIsNull() {
            addCriterion("vip_money is null");
            return (Criteria) this;
        }

        public Criteria andVipMoneyIsNotNull() {
            addCriterion("vip_money is not null");
            return (Criteria) this;
        }

        public Criteria andVipMoneyEqualTo(Double value) {
            addCriterion("vip_money =", value, "vipMoney");
            return (Criteria) this;
        }

        public Criteria andVipMoneyNotEqualTo(Double value) {
            addCriterion("vip_money <>", value, "vipMoney");
            return (Criteria) this;
        }

        public Criteria andVipMoneyGreaterThan(Double value) {
            addCriterion("vip_money >", value, "vipMoney");
            return (Criteria) this;
        }

        public Criteria andVipMoneyGreaterThanOrEqualTo(Double value) {
            addCriterion("vip_money >=", value, "vipMoney");
            return (Criteria) this;
        }

        public Criteria andVipMoneyLessThan(Double value) {
            addCriterion("vip_money <", value, "vipMoney");
            return (Criteria) this;
        }

        public Criteria andVipMoneyLessThanOrEqualTo(Double value) {
            addCriterion("vip_money <=", value, "vipMoney");
            return (Criteria) this;
        }

        public Criteria andVipMoneyIn(List<Double> values) {
            addCriterion("vip_money in", values, "vipMoney");
            return (Criteria) this;
        }

        public Criteria andVipMoneyNotIn(List<Double> values) {
            addCriterion("vip_money not in", values, "vipMoney");
            return (Criteria) this;
        }

        public Criteria andVipMoneyBetween(Double value1, Double value2) {
            addCriterion("vip_money between", value1, value2, "vipMoney");
            return (Criteria) this;
        }

        public Criteria andVipMoneyNotBetween(Double value1, Double value2) {
            addCriterion("vip_money not between", value1, value2, "vipMoney");
            return (Criteria) this;
        }

        public Criteria andVipDiscountIsNull() {
            addCriterion("vip_discount is null");
            return (Criteria) this;
        }

        public Criteria andVipDiscountIsNotNull() {
            addCriterion("vip_discount is not null");
            return (Criteria) this;
        }

        public Criteria andVipDiscountEqualTo(Double value) {
            addCriterion("vip_discount =", value, "vipDiscount");
            return (Criteria) this;
        }

        public Criteria andVipDiscountNotEqualTo(Double value) {
            addCriterion("vip_discount <>", value, "vipDiscount");
            return (Criteria) this;
        }

        public Criteria andVipDiscountGreaterThan(Double value) {
            addCriterion("vip_discount >", value, "vipDiscount");
            return (Criteria) this;
        }

        public Criteria andVipDiscountGreaterThanOrEqualTo(Double value) {
            addCriterion("vip_discount >=", value, "vipDiscount");
            return (Criteria) this;
        }

        public Criteria andVipDiscountLessThan(Double value) {
            addCriterion("vip_discount <", value, "vipDiscount");
            return (Criteria) this;
        }

        public Criteria andVipDiscountLessThanOrEqualTo(Double value) {
            addCriterion("vip_discount <=", value, "vipDiscount");
            return (Criteria) this;
        }

        public Criteria andVipDiscountIn(List<Double> values) {
            addCriterion("vip_discount in", values, "vipDiscount");
            return (Criteria) this;
        }

        public Criteria andVipDiscountNotIn(List<Double> values) {
            addCriterion("vip_discount not in", values, "vipDiscount");
            return (Criteria) this;
        }

        public Criteria andVipDiscountBetween(Double value1, Double value2) {
            addCriterion("vip_discount between", value1, value2, "vipDiscount");
            return (Criteria) this;
        }

        public Criteria andVipDiscountNotBetween(Double value1, Double value2) {
            addCriterion("vip_discount not between", value1, value2, "vipDiscount");
            return (Criteria) this;
        }

        public Criteria andDiscountEndDateIsNull() {
            addCriterion("discount_end_date is null");
            return (Criteria) this;
        }

        public Criteria andDiscountEndDateIsNotNull() {
            addCriterion("discount_end_date is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountEndDateEqualTo(Date value) {
            addCriterionForJDBCDate("discount_end_date =", value, "discountEndDate");
            return (Criteria) this;
        }

        public Criteria andDiscountEndDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("discount_end_date <>", value, "discountEndDate");
            return (Criteria) this;
        }

        public Criteria andDiscountEndDateGreaterThan(Date value) {
            addCriterionForJDBCDate("discount_end_date >", value, "discountEndDate");
            return (Criteria) this;
        }

        public Criteria andDiscountEndDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("discount_end_date >=", value, "discountEndDate");
            return (Criteria) this;
        }

        public Criteria andDiscountEndDateLessThan(Date value) {
            addCriterionForJDBCDate("discount_end_date <", value, "discountEndDate");
            return (Criteria) this;
        }

        public Criteria andDiscountEndDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("discount_end_date <=", value, "discountEndDate");
            return (Criteria) this;
        }

        public Criteria andDiscountEndDateIn(List<Date> values) {
            addCriterionForJDBCDate("discount_end_date in", values, "discountEndDate");
            return (Criteria) this;
        }

        public Criteria andDiscountEndDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("discount_end_date not in", values, "discountEndDate");
            return (Criteria) this;
        }

        public Criteria andDiscountEndDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("discount_end_date between", value1, value2, "discountEndDate");
            return (Criteria) this;
        }

        public Criteria andDiscountEndDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("discount_end_date not between", value1, value2, "discountEndDate");
            return (Criteria) this;
        }

        public Criteria andBackMoneyIsNull() {
            addCriterion("back_money is null");
            return (Criteria) this;
        }

        public Criteria andBackMoneyIsNotNull() {
            addCriterion("back_money is not null");
            return (Criteria) this;
        }

        public Criteria andBackMoneyEqualTo(Double value) {
            addCriterion("back_money =", value, "backMoney");
            return (Criteria) this;
        }

        public Criteria andBackMoneyNotEqualTo(Double value) {
            addCriterion("back_money <>", value, "backMoney");
            return (Criteria) this;
        }

        public Criteria andBackMoneyGreaterThan(Double value) {
            addCriterion("back_money >", value, "backMoney");
            return (Criteria) this;
        }

        public Criteria andBackMoneyGreaterThanOrEqualTo(Double value) {
            addCriterion("back_money >=", value, "backMoney");
            return (Criteria) this;
        }

        public Criteria andBackMoneyLessThan(Double value) {
            addCriterion("back_money <", value, "backMoney");
            return (Criteria) this;
        }

        public Criteria andBackMoneyLessThanOrEqualTo(Double value) {
            addCriterion("back_money <=", value, "backMoney");
            return (Criteria) this;
        }

        public Criteria andBackMoneyIn(List<Double> values) {
            addCriterion("back_money in", values, "backMoney");
            return (Criteria) this;
        }

        public Criteria andBackMoneyNotIn(List<Double> values) {
            addCriterion("back_money not in", values, "backMoney");
            return (Criteria) this;
        }

        public Criteria andBackMoneyBetween(Double value1, Double value2) {
            addCriterion("back_money between", value1, value2, "backMoney");
            return (Criteria) this;
        }

        public Criteria andBackMoneyNotBetween(Double value1, Double value2) {
            addCriterion("back_money not between", value1, value2, "backMoney");
            return (Criteria) this;
        }

        public Criteria andCountBackIsNull() {
            addCriterion("count_back is null");
            return (Criteria) this;
        }

        public Criteria andCountBackIsNotNull() {
            addCriterion("count_back is not null");
            return (Criteria) this;
        }

        public Criteria andCountBackEqualTo(Double value) {
            addCriterion("count_back =", value, "countBack");
            return (Criteria) this;
        }

        public Criteria andCountBackNotEqualTo(Double value) {
            addCriterion("count_back <>", value, "countBack");
            return (Criteria) this;
        }

        public Criteria andCountBackGreaterThan(Double value) {
            addCriterion("count_back >", value, "countBack");
            return (Criteria) this;
        }

        public Criteria andCountBackGreaterThanOrEqualTo(Double value) {
            addCriterion("count_back >=", value, "countBack");
            return (Criteria) this;
        }

        public Criteria andCountBackLessThan(Double value) {
            addCriterion("count_back <", value, "countBack");
            return (Criteria) this;
        }

        public Criteria andCountBackLessThanOrEqualTo(Double value) {
            addCriterion("count_back <=", value, "countBack");
            return (Criteria) this;
        }

        public Criteria andCountBackIn(List<Double> values) {
            addCriterion("count_back in", values, "countBack");
            return (Criteria) this;
        }

        public Criteria andCountBackNotIn(List<Double> values) {
            addCriterion("count_back not in", values, "countBack");
            return (Criteria) this;
        }

        public Criteria andCountBackBetween(Double value1, Double value2) {
            addCriterion("count_back between", value1, value2, "countBack");
            return (Criteria) this;
        }

        public Criteria andCountBackNotBetween(Double value1, Double value2) {
            addCriterion("count_back not between", value1, value2, "countBack");
            return (Criteria) this;
        }

        public Criteria andBackEndDateIsNull() {
            addCriterion("back_end_date is null");
            return (Criteria) this;
        }

        public Criteria andBackEndDateIsNotNull() {
            addCriterion("back_end_date is not null");
            return (Criteria) this;
        }

        public Criteria andBackEndDateEqualTo(Date value) {
            addCriterionForJDBCDate("back_end_date =", value, "backEndDate");
            return (Criteria) this;
        }

        public Criteria andBackEndDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("back_end_date <>", value, "backEndDate");
            return (Criteria) this;
        }

        public Criteria andBackEndDateGreaterThan(Date value) {
            addCriterionForJDBCDate("back_end_date >", value, "backEndDate");
            return (Criteria) this;
        }

        public Criteria andBackEndDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("back_end_date >=", value, "backEndDate");
            return (Criteria) this;
        }

        public Criteria andBackEndDateLessThan(Date value) {
            addCriterionForJDBCDate("back_end_date <", value, "backEndDate");
            return (Criteria) this;
        }

        public Criteria andBackEndDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("back_end_date <=", value, "backEndDate");
            return (Criteria) this;
        }

        public Criteria andBackEndDateIn(List<Date> values) {
            addCriterionForJDBCDate("back_end_date in", values, "backEndDate");
            return (Criteria) this;
        }

        public Criteria andBackEndDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("back_end_date not in", values, "backEndDate");
            return (Criteria) this;
        }

        public Criteria andBackEndDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("back_end_date between", value1, value2, "backEndDate");
            return (Criteria) this;
        }

        public Criteria andBackEndDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("back_end_date not between", value1, value2, "backEndDate");
            return (Criteria) this;
        }

        public Criteria andSettleAccessIsNull() {
            addCriterion("settle_access is null");
            return (Criteria) this;
        }

        public Criteria andSettleAccessIsNotNull() {
            addCriterion("settle_access is not null");
            return (Criteria) this;
        }

        public Criteria andSettleAccessEqualTo(String value) {
            addCriterion("settle_access =", value, "settleAccess");
            return (Criteria) this;
        }

        public Criteria andSettleAccessNotEqualTo(String value) {
            addCriterion("settle_access <>", value, "settleAccess");
            return (Criteria) this;
        }

        public Criteria andSettleAccessGreaterThan(String value) {
            addCriterion("settle_access >", value, "settleAccess");
            return (Criteria) this;
        }

        public Criteria andSettleAccessGreaterThanOrEqualTo(String value) {
            addCriterion("settle_access >=", value, "settleAccess");
            return (Criteria) this;
        }

        public Criteria andSettleAccessLessThan(String value) {
            addCriterion("settle_access <", value, "settleAccess");
            return (Criteria) this;
        }

        public Criteria andSettleAccessLessThanOrEqualTo(String value) {
            addCriterion("settle_access <=", value, "settleAccess");
            return (Criteria) this;
        }

        public Criteria andSettleAccessLike(String value) {
            addCriterion("settle_access like", value, "settleAccess");
            return (Criteria) this;
        }

        public Criteria andSettleAccessNotLike(String value) {
            addCriterion("settle_access not like", value, "settleAccess");
            return (Criteria) this;
        }

        public Criteria andSettleAccessIn(List<String> values) {
            addCriterion("settle_access in", values, "settleAccess");
            return (Criteria) this;
        }

        public Criteria andSettleAccessNotIn(List<String> values) {
            addCriterion("settle_access not in", values, "settleAccess");
            return (Criteria) this;
        }

        public Criteria andSettleAccessBetween(String value1, String value2) {
            addCriterion("settle_access between", value1, value2, "settleAccess");
            return (Criteria) this;
        }

        public Criteria andSettleAccessNotBetween(String value1, String value2) {
            addCriterion("settle_access not between", value1, value2, "settleAccess");
            return (Criteria) this;
        }

        public Criteria andIsOpenIsNull() {
            addCriterion("is_open is null");
            return (Criteria) this;
        }

        public Criteria andIsOpenIsNotNull() {
            addCriterion("is_open is not null");
            return (Criteria) this;
        }

        public Criteria andIsOpenEqualTo(Integer value) {
            addCriterion("is_open =", value, "isOpen");
            return (Criteria) this;
        }

        public Criteria andIsOpenNotEqualTo(Integer value) {
            addCriterion("is_open <>", value, "isOpen");
            return (Criteria) this;
        }

        public Criteria andIsOpenGreaterThan(Integer value) {
            addCriterion("is_open >", value, "isOpen");
            return (Criteria) this;
        }

        public Criteria andIsOpenGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_open >=", value, "isOpen");
            return (Criteria) this;
        }

        public Criteria andIsOpenLessThan(Integer value) {
            addCriterion("is_open <", value, "isOpen");
            return (Criteria) this;
        }

        public Criteria andIsOpenLessThanOrEqualTo(Integer value) {
            addCriterion("is_open <=", value, "isOpen");
            return (Criteria) this;
        }

        public Criteria andIsOpenIn(List<Integer> values) {
            addCriterion("is_open in", values, "isOpen");
            return (Criteria) this;
        }

        public Criteria andIsOpenNotIn(List<Integer> values) {
            addCriterion("is_open not in", values, "isOpen");
            return (Criteria) this;
        }

        public Criteria andIsOpenBetween(Integer value1, Integer value2) {
            addCriterion("is_open between", value1, value2, "isOpen");
            return (Criteria) this;
        }

        public Criteria andIsOpenNotBetween(Integer value1, Integer value2) {
            addCriterion("is_open not between", value1, value2, "isOpen");
            return (Criteria) this;
        }

        public Criteria andVipAccessIsNull() {
            addCriterion("vip_access is null");
            return (Criteria) this;
        }

        public Criteria andVipAccessIsNotNull() {
            addCriterion("vip_access is not null");
            return (Criteria) this;
        }

        public Criteria andVipAccessEqualTo(String value) {
            addCriterion("vip_access =", value, "vipAccess");
            return (Criteria) this;
        }

        public Criteria andVipAccessNotEqualTo(String value) {
            addCriterion("vip_access <>", value, "vipAccess");
            return (Criteria) this;
        }

        public Criteria andVipAccessGreaterThan(String value) {
            addCriterion("vip_access >", value, "vipAccess");
            return (Criteria) this;
        }

        public Criteria andVipAccessGreaterThanOrEqualTo(String value) {
            addCriterion("vip_access >=", value, "vipAccess");
            return (Criteria) this;
        }

        public Criteria andVipAccessLessThan(String value) {
            addCriterion("vip_access <", value, "vipAccess");
            return (Criteria) this;
        }

        public Criteria andVipAccessLessThanOrEqualTo(String value) {
            addCriterion("vip_access <=", value, "vipAccess");
            return (Criteria) this;
        }

        public Criteria andVipAccessLike(String value) {
            addCriterion("vip_access like", value, "vipAccess");
            return (Criteria) this;
        }

        public Criteria andVipAccessNotLike(String value) {
            addCriterion("vip_access not like", value, "vipAccess");
            return (Criteria) this;
        }

        public Criteria andVipAccessIn(List<String> values) {
            addCriterion("vip_access in", values, "vipAccess");
            return (Criteria) this;
        }

        public Criteria andVipAccessNotIn(List<String> values) {
            addCriterion("vip_access not in", values, "vipAccess");
            return (Criteria) this;
        }

        public Criteria andVipAccessBetween(String value1, String value2) {
            addCriterion("vip_access between", value1, value2, "vipAccess");
            return (Criteria) this;
        }

        public Criteria andVipAccessNotBetween(String value1, String value2) {
            addCriterion("vip_access not between", value1, value2, "vipAccess");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}